﻿#ifndef SPEECHMODULETHREAD_H
#define SPEECHMODULETHREAD_H

#include <QObject>
#include <QThread>
#include <QDebug>
#include <QSerialPortInfo>
#include <QSerialPort>
#include <QMessageBox>
#include "tcpclient.h"
#include <QLabel>
#include <StringListener.h>
#include <QScreen>
#include <QMessageBox>


class speechModuleThread:public QObject
{
    Q_OBJECT;
public:
    explicit speechModuleThread(QObject *parent = nullptr);
    QSerialPort *serialPort;// 串口

    QThread thread;
    void serialclo();
    void run();


public slots:

    void stop();
    void serialPortRead_Slot();
    void closeMovieLabel();
    void serialinfo();

private:
    TcpClient *tcpclient;
    QLabel *label;
    QTimer* labelTimer;
    QScreen *screen;
    QRect screenGeometry;
    int centerX=0,centerY=0;
    QMessageBox *mes;
    QMovie *movieDoor;



};

#endif // SPEECHMODULETHREAD_H
